//
//  LoadMoreView.m
//  ios_news
//
//  Created by Han on 14-6-16.
//  Copyright (c) 2014年 ucoder. All rights reserved.
//

#import "LoadMoreView.h"

@implementation LoadMoreView

static int tagValue = 500;

+ (int)getViewTag
{
    return tagValue;
}


- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.frame = frame;
        //self.backgroundColor = [UIColor redColor];
        [self drawView];
    }
    return self;
}

- (void) drawView
{
    UIActivityIndicatorView *loadingView = [[UIActivityIndicatorView alloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
    loadingView.hidesWhenStopped = YES;
    loadingView.frame = CGRectMake(95, 10, 20, 20);
    [loadingView startAnimating];
    [self addSubview:loadingView];
    
    
    UILabel *textLabel = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 80.0f, 20.0f)];
    textLabel.textAlignment = NSTextAlignmentCenter;
    
    [textLabel setCenter:self.center];
    
    [textLabel setFont:[UIFont fontWithName:@"Helvetica Neue" size:14]];
    
    [textLabel setText:@"正在加载中..."];
    
    [self addSubview:textLabel];

}

@end
